﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace eLearning
{
    public partial class SignIn_Failed : ChildWindow
    {
		private SignIn parenCW;
        
		private SignIn_Failed()
        {
            InitializeComponent();
        }
		
		public SignIn_Failed (SignIn paren): this()
		{
			this.parenCW = paren;
		}

        private void CancelSignIn(object sender, System.Windows.RoutedEventArgs e)
        {
            this.Close();
			this.parenCW.Close ();
        }

        private void SignUpNow(object sender, System.Windows.RoutedEventArgs e)
        {
            // TODO: Add event handler implementation here.
			this.parenCW.SignUpNow ();
            this.Close();
        }

        private void SignInAgain(object sender, System.Windows.RoutedEventArgs e)
        {
            // TODO: Add event handler implementation here.			
			parenCW.Username_Textbox.Text = "Username";
			parenCW.Username_Textbox.SelectAll();
            this.Close();
        }
    }
}

